home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Begin VB.Form Disconnect
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Disconnect HTTP Server"
- ClientHeight = 2175
- ClientLeft = 1695
- ClientTop = 2295
- ClientWidth = 5280
- Icon = "Discon.frx":0000
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2175
- ScaleWidth = 5280
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 345
- Left = 4005
- TabIndex = 3
- Top = 630
- Width = 1125
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Default = -1 'True
- Enabled = 0 'False
- Height = 345
- Left = 4005
- TabIndex = 2
- Top = 180
- Width = 1125
- End
- Begin ComctlLib.ListView Servers
- Height = 1470
- Left = 180
- TabIndex = 1
- Top = 510
- Width = 3645
- _ExtentX = 6429
- _ExtentY = 2593
- View = 3
- LabelEdit = 1
- LabelWrap = -1 'True
- HideSelection = 0 'False
- HideColumnHeaders= -1 'True
- _Version = 327682
- SmallIcons = "imgAddresses"
- ForeColor = -2147483640
- BackColor = -2147483643
- Appearance = 1
- NumItems = 1
- BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Text = ""
- Object.Width = 2540
- EndProperty
- End
- Begin ComctlLib.ImageList imgAddresses
- Left = 4155
- Top = 1230
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 1
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Discon.frx":014A
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Label lblGeneric
- BackStyle = 0 'Transparent
- Caption = "&Server:"
- Height = 255
- Left = 180
- TabIndex = 0
- Top = 180
- Width = 1545
- End
- Attribute VB_Name = "Disconnect"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- '<Public>---------------------------------------------
- Public PressedOK As Boolean
- Public ServersNode As Node
- Public Alias As String
- '</Public>--------------------------------------------
- Private Sub cmdCancel_Click()
- PressedOK = False
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- Alias = Servers.SelectedItem.Text
- PressedOK = True
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim WorkingNode As Node
- Dim i As Integer
- Dim NumberChildren As Integer
- NumberChildren = ServersNode.Children
- If NumberChildren <> 0 Then
- cmdOK.Enabled = True
- For i = 1 To NumberChildren
- If (i = 1) Then
- Set WorkingNode = ServersNode.Child
- Else
- Set WorkingNode = WorkingNode.Next
- End If
-
- Call Servers.ListItems.Add(, , WorkingNode.Text, , 1)
- Next
- Else
- cmdOK.Enabled = False
- End If
- Set WorkingNode = Nothing
- CenterForm Me
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- If (Not (UnloadMode = vbFormCode)) Then
- PressedOK = False
- End If
- Set ServersNode = Nothing
- End Sub
-